<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>:: Shanti Chakra Foundation ::</title>
<link href="style.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="./css/yellow.css" />
<link rel="stylesheet" href="./css/small.css" />
<style type="text/css">
<!--
.style5 {color: #FFFFFF}
-->
</style>

</head>
<script type="text/javascript" src="./js/zapatec.js"></script>
<script type="text/javascript" src="./js/calendar.js"></script>
<!-- Loading language definition file -->
 <script type="text/javascript" src="./js/calendar-en.js"></script>
<%@ page import="java.io.* ,java.util.*, java.sql.*, Login.* , MemberDetails.*"%>
<body bgcolor="#0D62A2">
<div align="left">
  <p>&nbsp;</p>
  <p><a href = "dates.jsp">Back</a>
    <%
System.out.println("in dates1.jsp");
GetDatesDao gdd = new GetDatesDao();
HttpSession hsdates = request.getSession(true);
String dfrom = (String) hsdates.getAttribute("dfrom");
ResultSet rs = gdd.getdates(dfrom);
%>
    </p>
</div>
<form name="form1" method="post" action="GetDates">
  <table width="33%" border="0" align="center" cellpadding="0" cellspacing="0" class="greenlink_no_left_padding" >
    <tr>
      <td width="53%" height="31" class="greentext"><span class="greentext"><strong>Select Number of days :</strong></span></td>
      <td width="47%" class="greentext"><input name="datefrom" type="text" id="datefrom" size="5">
      </td>
    </tr>
    <tr>
      <td class="greentext"><div align="center">
          <input name="bday" type="submit" class="bluetext" id = "bday" value="Birthdays">
      </div></td>
      <td class="greentext"><div align="center">
          <input name="aniv" type="submit" class="bluetext" value="Anniversaries" io = "aniv">
      </div></td>
    </tr>
    <%if(rs.next() == true) 
{%>
  </table>
  <br>
<table width="676" border="1" align="center" class="greenlink_no_left_padding">
 <tr bgcolor="#333333">
    <th colspan="5" class="greentext"><div align="center" class="style5"><strong> 
      List Birth Date's </strong></div></th>
    </tr>
  <tr>
    <td class="redtext">Full Name</td>
    <td class="redtext">Mobile</td>
    <td class="redtext">Address</td>
    <td class="redtext">Mail ID</td>
    <td class="redtext">Date of Birth </td>
  </tr>
<%
while(rs.next() == true)
{
%>
<tr class="greentext">
<td width="166" class="greentext"><span class="greentext"><%=rs.getString(1)%>.<%=rs.getString(2)%> </span></td>
<td width="94" class="greentext"><span class="greentext"><%=rs.getString(3)%></span></td>
<td width="114" class="greentext"><span class="greentext"><%=rs.getString(4)%></span></td>
<td width="159" class="greentext"><span class="style5"><%=rs.getString(5)%></span></td>
<td width="119" class="greentext"><span class="style5"><%=rs.getString(6)%></span></td>
</tr>
<%}
}%>
</table>
</form>
</body>
</html>